package io.github.xbeeant.eoffice.model;

import io.github.xbeeant.core.BaseModelObject;
import java.io.Serializable;

/**
 * 
 * eoffice_resources_attr
 */
public class ResourcesAttr extends BaseModelObject<Long> implements Serializable {
    /**
     *
     * eoffice_resources_attr.raid
     */
    private Long raid;

    /**
     * 
     * 资源ID
     */
    private Long rid;

    /**
     * 
     * 属性key
     */
    private String skey;

    /**
     * 
     * 版本ID
     */
    private Integer vid;

    /**
     * 
     * 属性值
     */
    private String sval;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table eoffice_resources_attr
     *
     * @mbg.generated Sat Jul 10 16:46:56 CST 2021
     */
    private static final long serialVersionUID = 1L;

    /**
     * get field eoffice_resources_attr.raid
     * @return raid eoffice_resources_attr.raid
     */
    public Long getRaid() {
        return raid;
    }

    /**
    eoffice_resources_attr.raid
     *
     * @param raid the value for eoffice_resources_attr.raid
     */
    public void setRaid(Long raid) {
        this.raid = raid;
    }

    /**
     * get field 资源ID
     * @return rid 资源ID
     */
    public Long getRid() {
        return rid;
    }

    /**
     * set filed 资源ID
     * @param rid the value for 资源ID
     */
    public void setRid(Long rid) {
        this.rid = rid;
    }

    /**
     * get field 属性key
     * @return skey 属性key
     */
    public String getSkey() {
        return skey;
    }

    /**
     * set filed 属性key
     * @param skey the value for 属性key
     */
    public void setSkey(String skey) {
        this.skey = skey == null ? null : skey.trim();
    }

    /**
     * get field 版本ID
     * @return vid 版本ID
     */
    public Integer getVid() {
        return vid;
    }

    /**
     * set filed 版本ID
     * @param vid the value for 版本ID
     */
    public void setVid(Integer vid) {
        this.vid = vid;
    }

    /**
     * get field 属性值
     * @return sval 属性值
     */
    public String getSval() {
        return sval;
    }

    /**
     * set filed 属性值
     * @param sval the value for 属性值
     */
    public void setSval(String sval) {
        this.sval = sval == null ? null : sval.trim();
    }

    @Override
    public Long valueOfKey() {
        return raid;
    }

    @Override
    public void assignKeyValue(Long value) {
        this.raid = value;
    }
}